package ${packagePath}.service;

import com.vim.common.utils.IdGen;
import com.vim.common.base.CrudServiceImpl;
import ${packagePath}.model.${table.className};
import ${packagePath}.dao.${table.className}Mapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;

@Service
public class ${table.className}Service extends CrudServiceImpl<${table.className}> {

    @Resource
    private ${table.className}Mapper ${table.beanName}Mapper;

    @Autowired
    public ${table.className}Service(${table.className}Mapper mapper) {
        super(mapper);
    }

    @Override
    public int save(${table.className} entity) {
        entity.set${table.idName4Upper}(IdGen.uuid());
        return super.save(entity);
    }
}
